//
//  TKYEdittingDataCell.m
//  StationHouseHelper
//
//  Created by apple on 2018/6/20.
//  Copyright © 2018年 铁科院. All rights reserved.
//

#import "TKYEdittingDataCell.h"
@interface TKYEdittingDataCell()<UITextFieldDelegate>

@end
@implementation TKYEdittingDataCell

- (void)awakeFromNib {
    [super awakeFromNib];
     self.contentTextField.clearButtonMode = UITextFieldViewModeAlways;
    self.contentTextField.delegate = self;
    self.headerImageV.clipsToBounds=YES;
    self.headerImageV.contentMode = UIViewContentModeScaleAspectFill;
    
    self.textLabel.textColor = kRGBColor(51, 51, 51, 1);
    self.contentLabel.textColor = kRGBColor(51, 51, 51, 1);
    // Initialization code
}

- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{
    if (self.contentTextFieldBlock) {
        self.contentTextFieldBlock(string);
    };
    return YES;
}

- (BOOL)textFieldShouldEndEditing:(UITextField *)textField{
    if (self.contentTextFieldBlock) {
        self.contentTextFieldBlock(textField.text);
    };
    return YES;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
